#ifndef CREATE_TASK_DIALOG_H
#define CREATE_TASK_DIALOG_H

#include <string>
#include <gtkmm.h>
#include <functional>

class CreateTaskDialog
{
  public:
    CreateTaskDialog(Gtk::Window* parent);
    virtual ~CreateTaskDialog();
    bool GetSuccessStatus();
    std::string GetTaskName();
    void Show();
    void signal_result_connect(const sigc::slot<void()> & solt);
    void test_call(Glib::RefPtr<Gtk::Application> app);
  private:
    Glib::RefPtr<Gtk::Builder> refBuilder;
    Gtk::Window* pDialog=nullptr;
    Gtk::Entry* pEntryTaskName=nullptr;
    Gtk::Label* pLabInfo=nullptr;
    bool successStatus;
    void on_btnOK_click();
    void on_btnCancel_click();
};

#endif
